package Homework5

import akka.actor.{ActorSystem, Props}

object Test {
  def main(args: Array[String]): Unit = {
    val myFactory: ActorSystem = ActorSystem("myFactory")
    val master = myFactory.actorOf(Props[Master], "master")
    val worker1 = myFactory.actorOf(Props[Worker], "worker1")
    val worker2 = myFactory.actorOf(Props[Worker], "worker2")
    master.tell(worker1.path.toString, worker1)
    master.tell(worker2.path.toString, worker2)
  }
}
